package com.axdac.mixbind.net;

import java.lang.reflect.Proxy;

/**
 * Created by Administrator on 2018/4/10 0010.
 */

public class NetHelper {

    public Object getNAO(Class<?> clazz){
        Class[] classes = {clazz};
        ClassLoader loader = clazz.getClassLoader();
        NetInvo invo = new NetInvo();
        return Proxy.newProxyInstance(loader, classes, invo);
    }
}
